package com.cloud.wms.ui.main.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @Author:Chen
 * @Date: 2021-01-15 17:26
 * @Description:
 */
public class WarehouseEntity implements Parcelable {

    /**
     * warehouseID : 0
     * wareHouseName : string
     * wareHouseCode : string
     * warehouseType : 0
     */

    private long warehouseID;
    private String wareHouseName;
    private String wareHouseCode;
    private int warehouseType;

    public long getWarehouseID() {
        return warehouseID;
    }

    public void setWarehouseID(long warehouseID) {
        this.warehouseID = warehouseID;
    }

    public String getWareHouseName() {
        return wareHouseName;
    }

    public void setWareHouseName(String wareHouseName) {
        this.wareHouseName = wareHouseName;
    }

    public String getWareHouseCode() {
        return wareHouseCode;
    }

    public void setWareHouseCode(String wareHouseCode) {
        this.wareHouseCode = wareHouseCode;
    }

    public int getWarehouseType() {
        return warehouseType;
    }

    public void setWarehouseType(int warehouseType) {
        this.warehouseType = warehouseType;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.warehouseID);
        dest.writeString(this.wareHouseName);
        dest.writeString(this.wareHouseCode);
        dest.writeInt(this.warehouseType);
    }

    public WarehouseEntity() {
    }

    protected WarehouseEntity(Parcel in) {
        this.warehouseID = in.readLong();
        this.wareHouseName = in.readString();
        this.wareHouseCode = in.readString();
        this.warehouseType = in.readInt();
    }

    public static final Creator<WarehouseEntity> CREATOR = new Creator<WarehouseEntity>() {
        @Override
        public WarehouseEntity createFromParcel(Parcel source) {
            return new WarehouseEntity(source);
        }

        @Override
        public WarehouseEntity[] newArray(int size) {
            return new WarehouseEntity[size];
        }
    };
}
